package cn.mxb.logic.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.mxb.floor.pagination.Result;
import cn.mxb.logic.dao.SysAreaDAO;
import cn.mxb.logic.entity.SysArea;
import cn.mxb.logic.service.ISysAreaService;

@Service("sysAreaService")
public class SysAreaServiceImpl  implements ISysAreaService {

	@Autowired
	private SysAreaDAO sysAreaDAO;
	
	
	@Override
	public SysArea findByProperty(String property, String value) {
		return sysAreaDAO.findByProperty(property, value);
	}

	/**
	 * 分页
	 */
	@Override
	public Result<SysArea> find(SysArea sysArea, int page, int row) {
		return sysAreaDAO.find(sysArea, page, row);
	}

	/**
	 * add
	 */
	@Override
	public SysArea add(SysArea sysArea) {
		return sysAreaDAO.save(sysArea);
	}

	@Override
	public void delete(int id) {
		sysAreaDAO.remove(SysArea.class,id);
	}
	@Override
	public void update(SysArea sysArea) {
		
	}
	
	@Override
	public List<SysArea> findListByProperty(String property, String value) {
		return sysAreaDAO.findListByProperty(property, value);
	}

	/**
	 * 查询全部
	 */
	@Override
	public List<SysArea> findAllList() {
		return sysAreaDAO.getAll(SysArea.class);
	}


	
}
